package utils

import (
	"regexp"
)

func VerifyMobile(mobile string) bool {
	b, _ := regexp.MatchString(`^1[3-9]\d{9}$`, mobile)
	return b
}

func VerifyEmail(email string) bool {
	b, _ := regexp.MatchString(`\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*`, email)
	return b
}

func VerifyWorkNo(workNo string) bool {
	b, _ := regexp.MatchString(`^([0-9|V|X][0-9]\d{2,8})$`, workNo)
	return b
}
